﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using NUnit.Framework;
using SimpleServiceBus.Messages.Management.Monitoring;

namespace SimpleServiceBus.Tests
{
    [TestFixture]
    public class TestScratchPad
    {
        [Test]
        public void SerDeSerDaMsg()
        {
            XmlSerializer serializer = new XmlSerializer(typeof(object),new []{typeof(EndpointPingResponse)});
            MemoryStream ms = new MemoryStream();
            
            serializer.Serialize(ms,new EndpointPingResponse(){Message=""});

            ms.Position = 0;

            EndpointPingResponse resp = (EndpointPingResponse) serializer.Deserialize(ms);
        }
    }
}
